import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/home/Home.vue'
import List from '../views/list/List.vue'
import Mine from '../views/mine/Mine.vue'
import Login from '../views/login/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/list',
      name: 'list',
      component: List,
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine,
    },
    {
      path: '/login',
      name:'login',
      component: Login,
    }
    
  ],
})

window._router = router

export default router
